//
//  MusiciBottomCell.m
//  ShangHaiTuJI
//
//  Created by xiaoxiangtuji on 2017/7/31.
//  Copyright © 2017年 xiaoxiangtuji. All rights reserved.
//

#import "MusiciBottomCell.h"
#import "OpusListModel.h"
@implementation MusiciBottomCell

-(void)setModel:(OpusListModel *)model{
    UIImageView *ImageView = [[UIImageView alloc] init];
    [self addSubview:ImageView];
    [ImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.and.right.and.top.equalTo(self).offset(0);
        make.height.mas_equalTo(scaleTopAndBottom(70));
    }];
    UILabel *titlelabel = [[UILabel alloc] init];
    titlelabel.text = model.name;
    titlelabel.textAlignment = NSTextAlignmentCenter;
    titlelabel.adjustsFontSizeToFitWidth = YES;
    [self addSubview:titlelabel];
    [titlelabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.and.right.equalTo(self).offset(0);
        make.top.equalTo(ImageView.mas_bottom).offset(scaleTopAndBottom(5));
        make.height.mas_equalTo(scaleTopAndBottom(20));
    }];
    ImageView.backgroundColor = [UIColor yellowColor];
    titlelabel.backgroundColor = [UIColor whiteColor];

}



@end
